<?php
 namespace app\admin\service; class OrderGoods extends Base { function __construct() { parent::__construct(); $this->order_goods = new \app\common\model\OrderGoods(); } public function orderGoodsDelivery($order_id, $order_goods_id_array) { goto BTJz4; S9jAm: return $retval; goto K3qRj; CqDwJ: try { goto XFDSo; kbeQT: $this->order_goods->commit(); goto ErP5a; Op0xT: $retval = $order_goods->save($data, ["\157\162\x64\145\x72\x5f\x69\x64" => $order_id]); goto lEHP_; XFDSo: $data = array("\163\150\151\160\160\x69\156\x67\x5f\163\164\141\x74\x75\163" => 1); goto o8abV; o8abV: $order_goods = new \app\common\model\OrderGoods(); goto Op0xT; lEHP_: $order = new OrderService(); goto zQooM; ErP5a: return 1; goto EKD9o; zQooM: $order->orderDoDelivery($order_id); goto kbeQT; EKD9o: } catch (\Exception $e) { $this->order_goods->rollback(); return $e->getMessage(); } goto S9jAm; BTJz4: $this->order_goods->startTrans(); goto CqDwJ; K3qRj: } }
